import SvgIcon from "@/components/SvgIcon/index";

export default defineComponent({
  props: {
    id: {
      type: String,
      default: "",
    },
    class: {
      type: String,
      default: "",
    },
  },
  setup(props) {
    const url = ref("https://gitee.com/commit_code/vite-tsx-template");
    function goto() {
      window.open(url.value);
    }
    return () => (
      <div id={props.id} class={props.class}>
        <SvgIcon iconClass="github" onSvgClick={goto} />
      </div>
    );
  },
});
